subnet beginning_add enning_add mask assignment 1 192.168.1.0 192.168.1.31 255.255.255.224 2 192.168.1.32 192.168.1.63 255.255.255.224 3 192.168.1.64 192.168.1.95 255.255.255.224 4 192.168.1.96 192.168.1.127 255.255.255.224 First Floor LAN Subnet 5 192.168.1.128 192.168.1.143 255.255.255.240 6 192.168.1.144 192.168.1.159 255.255.255.240 Second Floor LAN Subnet -------------------------------------------------------------------------------------- cavo console da HOST 1 a BULDING 1 (router) // // // HOST 2 a 1° FLOOR SWITCH // // // HOST 3 a 2° FLOOR SWITCH -------------------------------------------------------------------------------------- HOST 1 -> TERMINAL: >en #conf term #int g0/0 #ip add 192.168.1.126 255.255.255.224 #no sh #exit #int g0/1 #ip add 192.168.1.158 255.255.255.240 #no sh -------------------------------------------------------------------------------------- HOST 3 -> TERMINAL: >en #conf term #int vlan 1 #ip add 192.168.1.157 255.255.25.240 #no sh #exit -------------------------------------------------------------------------------------- HOST 1 -> IP CONFIGURATION: IP: 192.168.1.97 SM: 255.255.255.224 GATEWAY: 192.168.1.126 -------------------------------------------------------------------------------------- HOST 2 -> IP CONFIGURATION: IP: 192.168.1.98 SM: 255.255.255.224 GATEWAY: 192.168.1.126 -------------------------------------------------------------------------------------- HOST 3 -> IP CONFIGURATION: IP: 192.168.1.145 SM: 255.255.255.240 GATEWAY: 192.168.1.158 -------------------------------------------------------------------------------------- TFTP SERVER -> IP CONFIGURATION: IP: 192.168.1.146 SM: 255.255.255.240 GATEWAY: 192.168.1.158 -------------------------------------------------------------------------------------- HOST 1 -> TERMINAL: #exit #hostname Middle #enable secret class #line console 0 #password class #login #exit #security passwords min-length 10 #service password-encryption #ip domain-name cisco.com #crypto key generate rsa 1024 (invio x2) #username netadmin secret cisco_CCNA5 #line vty 0 4 #login local #transport input ssh #exit #int g0/0 #ipv6 add (indirizzo abella)/64 #ipv6 add fe80::1 link-local #description To_First_Floor_LAN #exit #int g0/1 ##ipv6 add (indirizzo abella)/64 #ipv6 add fe80::1 link-local #description To_Second_Floor_LAN -------------------------------------------------------------------------------------- HOST 3 -> TERMINAL: #line vty 0 4 #password class #login #exit #ip default-gateway 192.168.1.158 -------------------------------------------------------------------------------------- HOST 1 -> IP CONFIGURATION: ipv6 tabella + gateway: fe80::1 (fare ipv6 anche per HOST 2, HOST 3 e TFTP SERVER; controllare se è attivo il servizio: TFTP SERVER -> SERVICES -> TFTP -> ON) -------------------------------------------------------------------------------------- HOST 1 -> TERMINAL: #exit(x2) #copy running-config tftp 192.168.1.146 (invio) #conf term #banner motd #welcome#